]> Untitled Git - wolf-seeking-sheep.git/blob - addons/dialogic/Example Assets/default_event.gd
Updated export config options
[wolf-seeking-sheep.git] / addons / dialogic / Example Assets / default_event.gd
1 @tool
2 extends DialogicEvent
3
4 # DEFINE ALL PROPERTIES OF THE EVENT
5 # var MySetting: String = ""
6
7 func _execute() -> void:
8         # I have no idea how this event works ;)
9         finish()
10
11
12 #region INITIALIZE
13 ################################################################################
14
15 # SET ALL VALUES THAT SHOULD NEVER CHANGE HERE
16 func _init() -> void:
17         event_name = "Default"
18         event_color = Color("#ffffff")
19         event_category = "Main"
20         event_sorting_index = 0
21
22 #endregion
23
24
25 #region SAVING/LOADING
26 ################################################################################
27 func get_shortcode() -> String:
28         return "default_shortcode"
29
30
31 func get_shortcode_parameters() -> Dictionary:
32         return {
33                 #param_name     : property_name
34                 #"arg_name"             : "NameOfProperty",
35         }
36
37 # You can alternatively overwrite these 3 functions:
38 # - to_text(),
39 # - from_text(),
40 # - is_valid_event()
41
42 #endregion
43
44
45 #region EDITOR REPRESENTATION
46 ################################################################################
47
48 func build_event_editor() -> void:
49         pass
50
51 #endregion